Architecting on AWS: Creating a Batch Processing Cluster - 4.2

This file contains the UserData content that you need to complete the Creating a Batch Processing Cluster lab.

To use this file:

1. Locate the section you need. Each section in this file matches a section in the lab instructions.

2. Copy the data and follow the rest of the lab instructions.

==================================================================================================================

Task 6.2: Launch an Instance

==================================================================================================================

#!/bin/bash

# Install ImageMagick, a Python library, and create a directory
yum install -y ImageMagick
easy_install argparse
mkdir /home/ec2-user/jobs

# Download and install the batch processing script
# The following command must be on a single line:
wget -O /home/ec2-user/image_processor.py https://us-west-2-aws-training.s3.amazonaws.com/awsu-ilt/architecting/v4.2/lab-6-batch-processing-application/static/image_processor.py
wget -O /home/ec2-user/MessageProducer.py https://us-west-2-aws-training.s3.amazonaws.com/awsu-ilt/architecting/v4.2/lab-6-batch-processing-application/static/MessageProducer.py

==================================================================================================================

Task 6.7: Create Queues

==================================================================================================================

https://us-west-2-aws-training.s3.amazonaws.com/awsu-ilt/architecting/v4.2/lab-6-batch-processing-application/static/20120728-DSC01265-L.jpg
https://us-west-2-aws-training.s3.amazonaws.com/awsu-ilt/architecting/v4.2/lab-6-batch-processing-application/static/20120728-DSC01267-L.jpg
https://us-west-2-aws-training.s3.amazonaws.com/awsu-ilt/architecting/v4.2/lab-6-batch-processing-application/static/20120728-DSC01292-L.jpg
https://us-west-2-aws-training.s3.amazonaws.com/awsu-ilt/architecting/v4.2/lab-6-batch-processing-application/static/20120728-DSC01315-L.jpg
https://us-west-2-aws-training.s3.amazonaws.com/awsu-ilt/architecting/v4.2/lab-6-batch-processing-application/static/20120728-DSC01337-L.jpg



==================================================================================================================

Task 6.9: Create a Launch Configuration

==================================================================================================================

#!/bin/sh
/usr/bin/python /home/ec2-user/image_processor.py &



Copyright 2014 Amazon Web Services, Inc. or its affiliates. All rights reserved.